//
//  ActionDetailBtn.swift
//  Motion
//
//  Created by 悦月越悦 on 2021/4/2.
//

import SwiftUI

struct ActionDetailBtn: View {
    @EnvironmentObject var videoPlayModel: VideoPlayModel
    
    var body: some View {
        HStack{
            Spacer()
            RoundedRectangle(cornerRadius: 20)
                .fill(Color("lightPurple"))
                .frame(width: 90,height: 32)
                .overlay(
                    ZStack{
                        Text("动作详情")
                            .customFont(16, true)
                            .foregroundColor(.white)
                    }
                )
                .onTapGesture(perform: {
                    videoPlayModel.isPresented.toggle()
                })
        }
    }
}

struct ActionDetailBtn_Previews: PreviewProvider {
    static var previews: some View {
        ActionDetailBtn()
    }
}
